package com.isoft.c2team3service2.config;

import com.isoft.c2team3service2.service.SensitiveWordService;
import org.springframework.boot.CommandLineRunner;
import org.springframework.context.annotation.Configuration;

import jakarta.annotation.Resource;

/**
 * 敏感词库初始化配置
 */
@Configuration
public class SensitiveWordConfig implements CommandLineRunner {

    @Resource
    private SensitiveWordService sensitiveWordService;

    @Override
    public void run(String... args) {
        // 初始化敏感词库
        sensitiveWordService.initSensitiveWordLibrary();
    }
}